package com.StarStudio.Service;

import com.ruoyi.common.core.Entity.PanicBuyingCoupons;
import com.ruoyi.common.core.Entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
@FeignClient(value = "PanicBuyingCoupons")
public interface PanicBuyingCouponsService {

    @RequestMapping("/findByCouponsId/{id}")
    PanicBuyingCoupons findByCoupons_id(@PathVariable(value = "id") long id);

    @PutMapping("/put")
    Result updatePanicBuyingCoupons(@RequestBody PanicBuyingCoupons panicBuyingCoupons);

}
